﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Trapezoid
{
    class Program
    {
        static char border = '*';
        static char space = '.';
        static void Main(string[] args)
        {
            int numberN = int.Parse(Console.ReadLine());
            //print first line
            for (int i = 0; i < numberN; i++)
            {
                Console.Write(space);
            }
            for (int i = 0; i < numberN; i++)
            {
                Console.Write(border);
            }
            Console.WriteLine();
            int currentBorderPos = numberN-1;
            for (int i = 0; i < numberN-1; i++)//lines
            {
                for (int j = 0; j < numberN * 2 - 1; j++)//chars on each line
                {
                    if (j!=currentBorderPos)
                    {
                        Console.Write(space);
                    }
                    else
                    {
                        Console.Write(border);
                    }
                }
                currentBorderPos--;
                Console.Write(border);
                Console.WriteLine();
            }
            
            for (int i = 0; i < numberN*2; i++)
            {
                Console.Write(border);
            }
            Console.WriteLine();
        }
    }
}
